#ifndef _SHADOW_UTIL_RESOURCE_H_
#define _SHADOW_UTIL_RESOURCE_H_


#include <log4cxx/logger.h>
#include <log4cxx/xml/domconfigurator.h>


class Resource {
	public:
		Resource();
		~Resource();
		time_t get_last_acquire_time();
		time_t get_last_release_time();
		bool is_in_use();
		int acquire();
		int release();
		int get_index();
		int set_index(int);
		int set_flag(int flag);
		int get_flag();
	private:
		time_t _last_acquire_time;
		time_t _last_release_time;
		bool _is_in_use;
		int _index;
		int _flag;
		static log4cxx::LoggerPtr _logger;
};

#endif
